package cn.rokhdelar.ams.management.service;

import org.springframework.security.core.userdetails.UserDetails;

import java.util.HashMap;

public interface JwtService {
    HashMap<String, Object> generateToken(UserDetails userDetails);

    String getUsername(String token);

    Boolean isTokenValid(String token, UserDetails userDetails);

    Boolean isTokenExpired(String toke);
}
